package org.hackystat.app.projectstatus.view;

import org.hackystat.core.common.selector.sdt.SensorDataTypeTestSelector;
import org.hackystat.core.kernel.test.HackystatTestConversation;
import org.hackystat.core.kernel.test.HackystatTestParameters;
import junit.framework.TestCase;


/**
 * Tests the web interface to the SensorDataSummary command.
 *
 * @author    Philip Johnson
 * @version   $Id: TestListSensorData.java,v 1.1.1.1 2005/10/20 23:56:33 johnson Exp $
 */
public class TestProjectStatus extends TestCase {

  /**
   * Tests retrieval of two days, one containing data and one not containing data.
   * @exception Exception If an error occurs
   */
  public void testSensorDataSummary () throws Exception {
    HackystatTestConversation test = new HackystatTestConversation();
    // Test with an SDT that contains sensor data.
    HackystatTestParameters[] params = {new SensorDataTypeTestSelector("Activity")};
    String result = test.invokeCommand("Sensor Data Summary", params).getResultCell(0, 0);
    //assertTrue("Checking non-empty SensorDataSummary" + test, result.startsWith("Sensor"));
  }
}








